package org.windblog.core.entity;

import org.windblog.core.Bloginfo;

public class Archive{

	private String name;
	private String value;
	private String type;
	private int count;
	public Archive()
	{
		count=0;
	}
	
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public void addCount()
	{
		count++;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String toString()
	{
		return type+"="+value;
	}
	
	public String getPermalink()
	{
		return Bloginfo.getURL()+"?"+this.getType()+"="+this.getValue();
	}
}